﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.DataVisualization.Charting;
using System.Drawing;

namespace HYSoft.Web
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            inits();

        }
        protected void inits()
        {
            Chart1.Series["Series1"].Points.Clear();
            Chart1.Series["Series1"].IsValueShownAsLabel = true;
            Chart1.Series["Series1"].MarkerStyle = MarkerStyle.Circle;
            Chart1.Series["Series1"].MarkerSize = 5;
            Chart1.Series["Series1"].LabelForeColor = Color.Purple;
            Chart1.Series["Series1"].MarkerBorderWidth = 10;
            //Chart2.Series["Series1"].Color = Color.SkyBlue;
            Chart1.Series["Series1"].BorderWidth = 2;
            Chart1.Series["Series1"].ShadowOffset = 1;
            Chart1.Series["Series1"].LabelFormat = "0mm";
            Chart1.Series["Series1"].Points.AddY(34);
            Chart1.Series["Series1"].Points.AddY(50);
            for (int i = 1; i < 50; i++)
            {
                Chart1.Series["Series1"].Points.AddY(i*10);
            }
            Chart1.ChartAreas["ChartArea1"].AxisX.Title = "记录时间";
            Chart1.ChartAreas["ChartArea1"].AxisY.Title = "毫米(mm)";

            Chart1.ChartAreas["ChartArea1"].AxisX.TitleFont = new Font("宋体", 11);
            Chart1.ChartAreas["ChartArea1"].AxisY.TitleFont = new Font("宋体", 11);
        }
    }
}